package com.chazz.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品分类表，储存商品类别信息(Category)实体类
 *
 * @author makejava
 * @since 2020-09-21 14:13:50
 */
public class Category implements Serializable {

//    private static final long serialVersionUID = -51591215701109909L;
    /**
     * 子分类id
     */
    private Integer categoryid;
    /**
     * 父分类id
     */
    private Integer parentid;
    /**
     * 分类名
     */
    private String categoryname;
    /**
     * 图片地址
     */
    private String categoryimg;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 更新时间
     */
    private Date updatetime;


    public Integer getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getCategoryname() {
        return categoryname;
    }

    public void setCategoryname(String categoryname) {
        this.categoryname = categoryname;
    }

    public String getCategoryimg() {
        return categoryimg;
    }

    public void setCategoryimg(String categoryimg) {
        this.categoryimg = categoryimg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return "Category{" +
                "categoryid=" + categoryid +
                ", parentid=" + parentid +
                ", categoryname='" + categoryname + '\'' +
                ", categoryimg='" + categoryimg + '\'' +
                ", status=" + status +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                '}';
    }
}